import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import {createPinia} from 'pinia'
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { createPersistedState } from 'pinia-plugin-persistedstate'

let app = createApp(App)
const pinia = createPinia()
app.use(pinia)
// pinia.use(piniaPluginPersistedstate)

pinia.use(
  createPersistedState({
    storage: sessionStorage,
    key: id => `__persisted__${id}`,
    auto: true,
  })
)


app.mount('#app')
